package interactiond

import (
	"github.com/globalsign/mgo"
)

func (c collInteraction) Indexes() []mgo.Index {
	return []mgo.Index{
		mgo.Index{
			Key: []string{"uid"},
		},
		mgo.Index{
			Key: []string{"code"},
		},
		mgo.Index{
			Key: []string{"code", "uid"},
		},
	}
}

func (c collReplay) Indexes() []mgo.Index {
	return []mgo.Index{
		mgo.Index{
			Key: []string{"igid", "parentID", "status"},
		},
		mgo.Index{
			Key: []string{"groupId"},
		},
		mgo.Index{
			Key: []string{"parentID"},
		},
	}
}
